#include <iostream>
using namespace std;
void main()
{

	int factory=1;
	int i;

	for(i=1; i<=10; i++) {
		factory = factory * i;
		cout << i << "! = " << factory << "\n";
	}
}
